const child_process = require('child_process')
const chalk = require('chalk')
const log = console.log

let process = require('process')
let argv = require('yargs').argv
let workerProcess

workerProcess = child_process.exec('http-server -p 6001 styleguide', {})

workerProcess.stdout.on('data', function (data) {
    log(chalk.cyan(data))
})

workerProcess.stderr.on('data', function (data) {
    console.error(chalk.red(data))
})

workerProcess.stderr.on('close', function (data) {
    console.error(chalk.red('close'))
})